// @IEditor.inspectorField("TreeSaveField")
// export class TreeSaveField extends IEditor.PropertyField {
//     create() {
//         let input = <IEditorUI.GComponent>IEditorUI.UIPackage.createObject("basic", "ButtonsField").asCom;
//         let list = input.getChild("buttons");
//         let btn = (list as any).addItemFromPool();

        
//         let showName = this.target.owner.property.name;
//         if (null != this.target.owner.property.caption) {
//             showName = this.target.owner.property.caption;
//         }

//         btn.text = showName;
//         btn.onClick(async () => {
//             Editor.scene.runScript("TreeSave.treeSave", this.inspector.target.owner, this.target.owner.property.name);
//         });


//         return { ui: input, captionDisplay: "hidden" };
//     }

//     refresh() {
//         //这里负责将数据设置到界面上
//     }
// }